package com.lintf.jwt.utils;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @ system:Mac
 * @ author:lin tingfeng
 * @ data:2022/3/17 12:45 下午
 * @ package_name:com.lintf.jwt.utils
 * @ project_name:JWT
 * @ desc:
 */
@Slf4j
public class PwdEncode {

    public static void main(String[] args) {
        PasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
        String encode = passwordEncoder.encode("123");
        log.info(encode);
    }

}
